import Mock from "mockjs";

const noticeIdList = {
  status:'success',
  'data|29':[
    {
      noticeId:'@string(32)'
    }
  ]
}

const noticeList = {
  status:'success',
  'data|10':[
    {
      noticeId:'@string(32)',//除了这个以外，其他字段名不能改
      title: '@ctitle(10,20)',
      desc: '@csentence()',
      url: {name: '消息详情',params:{noticeId:'@string(32)'}},
      meta: {
        date: '@datetime("yyyy-MM-dd HH:mm")',
        'other|1': ['生日提醒','预订提醒','门票消息','存酒消息','会员卡消息','系统消息']//消息的类型
      }
    }
  ]
}

const noticeItem = {
  status:'success',
  data:{
    noticeId:'@string(32)',
    title: '@ctitle(10,20)',
    content:'<img src="/assets/images/test/testMealItem1.jpg"/>'+'@cparagraph()'+'<img src="/assets/images/test/testMealItem2.jpg"/>'+'@cparagraph()',
    date: '@datetime("yyyy-MM-dd HH:mm")',
    'type|1':['生日提醒','预订提醒','门票消息','存酒消息','会员卡消息','系统消息']//消息的类型
  }
}

const callList = {
  status:'success',
  'data|5':[
    {
      CALLSERVICE_ID:'@string(32)',
      callNumber:'20181212100'+'@integer(100000000, 999999999)',
      REQUEST_DATETIME:'@datetime("yyyy-MM-dd HH:mm:ss")',
      CALL_COUNT:'@integer(1,10)',
      ORIGINATOR:'@string(32)',
      ROOMPLATFORM_ID:'@string(32)',
      'REMARK|1':['','@csentence'],
      'STATE|1':[0,1],//响应状态：0未响应，1已响应
      CALLSERVICETYPE_ID:'@integer(1,20)',
      'type|1':[1,2,3]//消息的类型1-存酒,2-服务,3-投诉建议
    }
  ]
}

const callStatus = {
  status:'success',
  msg:'后端返回的提示信息'
}

const callServiceList = {
  status:'success',
  data:[
    {key: '@string(32)', value: '服务类', list: ['需要服务员','需要骰子','需要杯具']},
    {key: '@string(32)', value: '酒水类', list: ['需要点餐','上错东西了','催促酒水']},
    {key: '@string(32)', value: '环境类', list: ['隔壁客人影响到我','需要更换台位']}
  ]
}

const complainList = {
  status:'success',
  data:[
    {key: '@string(32)', value: '服务态度差，服务不及时'},
    {key: '@string(32)', value: '环境不好'},
    {key: '@string(32)', value: '卫生不佳，不整洁'},
    {key: '@string(32)', value: '上错东西'},
    {key: '@string(32)', value: '杯具破损，台凳损坏'}
  ]
}

export {noticeIdList,noticeList,noticeItem,callList,callStatus,callServiceList,complainList}
